package com.zking.ssm.PMQ.service;

import com.zking.ssm.PMQ.model.Role;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IRoleService {

    //查询所有的角色
    @Transactional(readOnly = true)
    List<Role> listRole(Role record);

    //查询单个管理员角色
    @Transactional(readOnly = true)
    Role listUserRole(Long usrId);
}
